package com.mac.hosp_pre.order.service;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.binarywang.wxpay.bean.notify.WxPayOrderNotifyResult;
import com.github.binarywang.wxpay.bean.result.WxPayOrderQueryResult;
import com.mac.hosp_pre.order.entity.OrderInfo;
import com.mac.hosp_pre.order.entity.PaymentInfo;
import com.mac.hosp_pre.order.model.resp.PaymentRespDto;

import java.util.Map;

public interface PaymentService extends IService<PaymentInfo> {

    //向支付记录表添加信息
    void savePaymentInfo(OrderInfo order, Integer status);

    //更新订单状态
    void paySuccess(String outTradeNo, WxPayOrderNotifyResult payResult);

    /**
     * 获取支付记录
     * @param orderId
     * @return
     */
    PaymentRespDto getPaymentInfo(Long orderId);

}
